<?if(!$this->auth):?>
	<?=$this->partial('index/login.phtml', array('translate' => $this->translate))?>
<?endif;?>

<?if($this->auth):?>
	<?=$this->GetWatchedThreads(10)?>
<?endif;?>

<?if($this->settings['is_online'] == 0):?>
	<p class="notice_bad"><?=$this->translate->_('admin_offline')?></p>
<?endif;?>

<?if($this->result_count > 0):?>
	<table summary="boards" class="table_boards">
	<?foreach($this->result AS $result):?>
		
		<tr class="board_category">
			<th>
				<span style="position:relative;top:+3px;" onclick="toggleCat(<?=$result['uid']?>);" id="toggle_<?=$result['uid']?>" class="toggle_minus"></span> 
				<span><?if(strlen($result['lang_key'])> 0): echo $this->translate->_($result['lang_key']); else: echo $this->escape($result['title']); endif;?></span>
			</th>
			<th width="10%" class="center"><?=$this->translate->_('board_topics')?></th>
			<th width="10%" class="center"><?=$this->translate->_('board_posts')?></th>
			<th width="25%" class="center"><?=$this->translate->_('board_last_topics')?></th>
		</tr>
		
		<?=$this->partial('index/boards.phtml', array('query' => $this->getBoards($result['uid']), 'translate' => $this->translate))?>
	<?endforeach;?>
	</table>
<?else:?>

	<p class="notice"><?=$this->translate->_('error_categories')?></p>

<?endif;?>

<?=$this->partial('legend.phtml', array('translate' => $this->translate))?>